#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by master on 2017/2/25


import collections

# 创建类
MyTupleClass = collections.namedtuple("MyTupleClass", ["x", "y", "z"])

ntuple = MyTupleClass(11, 22, 44)

print(ntuple.x)
print(ntuple.y)
print(ntuple.z)

# 查看类的方法
print(help(MyTupleClass))
